Set-GWDefaultSettings

NAME

Set-GWDefaultSettings

SYNOPSIS

Modifies default settings used to configure a Gateway.

SYNTAX

Set-GWDefaultSettings [-AllowAppsInNewTab <bool>] [-AllowClipboard <bool>] [-AllowEmbed <bool>] [-AllowFileTransfer <bool>] [-AllowLaunchMethod <bool>] [-AlternateNLBHost <string>] [-AlternateNLBPort <uint>] [-AutoCertificate <SwitchParameter>] [-AutoPreferredPA <SwitchParameter>] [-Broadcast <bool>] [-CertificateId <uint>] [-CertificateObj <Certificate>] [-Cipher <string>] [-CipherStrength <CipherStrength> {Low | Medium | High | Custom}] [-DOSPro <bool>] [-EnableAlternateNLBHost <bool>] [-EnableAlternateNLBPort <bool>] [-EnableClientManagerPort <bool>] [-EnableGWPort <bool>] [-EnableHSTS <bool>] [-EnableHTML5 <bool>] [-EnableRDP <bool>] [-EnableRDPUDP <bool>] [-EnableSSL <bool>] [-EnableWyseSupport <bool>] [-ForwardGatewayServers <string>] [-ForwardHttpServers <string>] [-GWMode <GatewayMode> {Normal | Forwarding}] [-GWPort <uint>] [-HSTSIncludeSubdomains <bool>] [-HSTSMaxAge <uint>] [-HSTSPreload <bool>] [-HTML5Port <uint>] [-LaunchMethod <LaunchMethod> {ParallelsClientAndHTML5 | ParallelsClient | HTML5}] [-MACAllowExcept <string[]>] [-MACAllowOnly <string[]>] [-MinSSLVersion <AcceptedSSLVersions> {SSLv2 | SSLv3 | TLSv1 | TLSv1_1 | TLSv1_2}] [-NormalModeForwarding <bool>] [-PreferredPAId <uint>] [-PreferredPAObj <PA>] [-RDPPort <uint>] [-SecurityMode <GWSecurityMode> {AllowAllExcept | AllowOnly}] [-SiteId <uint>] [-SSLPort <uint>] [-UsePreWin2000LoginFormat <bool>] [-WebCookie <string>] [-WebRequestsURL <string>] [<CommonParameters>]

DESCRIPTION

Modifies default settings used to configure a Gateway.

For each setting, the cmdlet has a corresponding input parameter. To modify a setting, specify a matching parameter and its value.

Default settings are defined on a site level and are applied to a Gateway when it is initially added to the site.

To retrieve the current defaults settings, use the Get-GWDefaultSettings cmdlet.

PARAMETERS


-SiteId <uint>
Site ID for which to modify the default gateway settings.

        Required?                    false
        Position?                    named
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-GWMode <GatewayMode>
Gateway Mode. Accepted values: Normal, Forwarding.

Possible values: Normal, Forwarding

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-NormalModeForwarding <bool>
Forward requests to HTTP server.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-ForwardGatewayServers <string>
One or multiple (separated by comma) Forwarding Gateway Servers.

E.g. localhost:80, web1

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AutoPreferredPA <SwitchParameter>
Set preferred PA as Automatically.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false

-PreferredPAObj <PA>
The preferred PA server.

To obtain an object of type PA representing the Preferred Publishing Agent, use the Get-PA cmdlet.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-PreferredPAId <uint>
The preferred PA server Id

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-ForwardHttpServers <string>
One or multiple (separated by comma) Forwarding HTTP Servers.

E.g. localhost:81, web1

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableGWPort <bool>
Enable or disable a custom RAS Secure Client Gateway port.

To specify a custom port, set this parameter to True and use the GWPort parameter to specify the port number.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-GWPort <uint>
A custom Gateway port number. For this port to take effect, the EnableGWPort parameters must be set to $True.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableRDP <bool>
Enable or disable a custom RDP port.

To specify a custom port number, use the RDPPort parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableRDPPort <bool>
Enable or disable a custom RDP port.

To specify a custom port number, use the RDPPort parameter.

This is an alias of the EnableRDP parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-RDPPort <uint>
A custom RDP port number. For this port to take effect, the EnableRDPPort parameter must be set to True.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Broadcast <bool>
Enable or disable the 'Broadcast RAS Secure Client Gateway Address' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableRDPUDP <bool>
Enable or disable the 'RDP UDP Data Tunneling' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableClientManagerPort <bool>
Enable or disable the 'Client Manager Port' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableCMPort <bool>
Enable or disable the 'Client Manager Port' option.

This is an alias of the EnableClientManagerPort parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-DOSPro <bool>
Enable or disable the 'RDP DOS Attack Filter' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableDOSPro <bool>
Enable or disable the 'RDP DOS Attack Filter' option.

This is an alias of the DOSPro parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableSSL <bool>
Enable or disable SSL on the port specified in the SSLPort parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SSLPort <uint>
SSL port number. To enable the port, set the EnableSSL port parameter to True.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-MinSSLVersion <AcceptedSSLVersions>
Minimum SSL version. Accepted values: TLSv1_2 (TLS v1.2 only, strong), TLSv1_1 (TLS v1.1 - TLS v1.2), TLSv1 (TLS v1 - TLS v1.2), SSLv3 (SSL v3 - TLS v1.2), SSLv2 (SSL v2 - TLS v1.2).

Possible values: SSLv2, SSLv3, TLSv1, TLSv1_1, TLSv1_2

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-CipherStrength <CipherStrength>
Cipher strength. Accepted values: Low, Medium, High, Custom.

Possible values: Low, Medium, High, Custom

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Cipher <string>
Cipher string.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AutoCertificate <SwitchParameter>
Set Certificate as Automatically.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false

-CertificateObj <Certificate>
The Certificate.

To obtain an object of type Certificate, use the Get-Certificate cmdlet.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-CertificateId <uint>
The Certificate Id.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableHSTS <bool>
Enable or disable HSTS.

To specify a custom HSTS Age, set this parameter to True and use the HSTSMaxAge parameter to specify the HSTS maximum age.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-HSTSMaxAge <uint>
Specifies the HSTS maximum age.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-HSTSIncludeSubdomains <bool>
Enable or disable the HSTS sub-domains.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-HSTSSubdomains <bool>
Enable or disable the HSTS sub-domains.

This is an alias of the HSTSIncludeSubdomains parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-HSTSPreload <bool>
Enable or disable the HSTS preload.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableHTML5 <bool>
Enable or disable HTML5 connectivity on the Gateway.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-HTML5Port <uint>
A custom HTML5 port number.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-LaunchMethod <LaunchMethod>
Launch method. Accepted values: ParallelsClientAndHTML5 (Parallels Client and fallback to HTML5), ParallelsClient (Parallels Client only), HTML5 (HTML5 Client only).

Possible values: ParallelsClientAndHTML5, ParallelsClient, HTML5

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AllowLaunchMethod <bool>
Allow users to select a resource launch method.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AllowAppsInNewTab <bool>
Allow users to start applications in a new browser tab.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-UsePreWin2000LoginFormat <bool>
Enables or disables the 'Use Pre Windows 2000 Login Format' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-UsePreWin2000Login <bool>
Enables or disables the 'Use Pre Windows 2000 Login Format' option.

This is an alias of the UsePreWin2000LoginFormat parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AllowEmbed <bool>
Allow embedding of Web Client into other web pages.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AllowFileTransfer <bool>
Enables or disables the 'Allow file transfer' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AllowClipboard <bool>
Enables or disables the 'Allow Clipboard' option.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableAlternateNLBHost <bool>
Enable or disable Alternate NLB host name specified in the EnableAlternateNLBHost parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AlternateNLBHost <string>
Alternate NLB host name. To enable the host name, set the EnableAlternateNLBHost port parameter to True.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableAlternateNLBPort <bool>
Enable or disable Alternate NLB on the port specified in the AlternateNLBPort parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-AlternateNLBPort <uint>
Alternate NLB port number. To enable the port, set the EnableAlternateNLBPort port parameter to True.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-EnableWyseSupport <bool>
Enable or disable Wyse ThinOS support.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SecurityMode <GWSecurityMode>
Security Mode. Accepted values: AllowAllExcept, AllowOnly.

Possible values: AllowAllExcept, AllowOnly

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-MACAllowExcept <string[]>
Specifies the Security 'MAC Allow Except' MAC addresses.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-MACAllowOnly <string[]>
Specifies the Security 'MAC Allow Only' MAC addresses.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-WebRequestsURL <string>
Sets a URL for Web requests.

This is the URL that will open when a user enters the IP address

of the RAS Secure Client Gateway server in a web browser.

For the URL to work, the gateway mode must be set to Normal.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-WebCookie <string>
Sets the Web Cookie Name used by RAS.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters documentation. 

INPUTS

-none-

OUTPUTS

-none-

EXAMPLES


---------- EXAMPLE 1 ----------

Set-GWDefaultSettings -SiteId 2 -GWPort 90

Sets the default value of the GWPort property for the specified site.

RELATED LINKS